package com.sxt.controller;

import com.sxt.domain.Billstype;
import com.sxt.service.BillstypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import java.util.List;

@RestController
@RequestMapping("billstype")
public class BillstypeController {

    @Autowired
    private BillstypeService billstypeService;


    //查询所有类型返回json
    @RequestMapping("queryAllBillstype")
    public List<Billstype> queryAllBillstype(){
        return this.billstypeService.queryAllBillstype();
    }

}
